package office.service.sale;

import java.util.List;

import office.action.sale.form.ProductDetailConditionForm;
import office.action.sale.form.ProductDetailForm;
import office.action.sale.wrapper.ProductDetailWrapper;
import platform.common.bo.Page;
import platform.common.exception.BusinessException;

/**
 * 产品明细管理
 * @author ZhangYQ
 *
 */
public interface IProductDetailService {
	/**
	 * 获取分页信息
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfo(ProductDetailConditionForm condition)throws BusinessException;
	/**
	 * 获取所有的销售机会
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<ProductDetailWrapper> findAllProductDetail(ProductDetailConditionForm condition,Page page)throws BusinessException;
	/**
	 * 编辑销售机会
	 * @param saleChanceForm
	 * @throws BusinessException
	 */
	public void editProductDetail(ProductDetailForm form)throws BusinessException;
	
	/**
	 * 删除销售机会
	 * @param id
	 * @throws BusinessException
	 */
	public void delProductDetailById(String id)throws BusinessException;
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public ProductDetailForm getById(String id)throws BusinessException;
}
